package com.car.dal.dao.personnel;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgPersonnelState;
import com.car.util.Page;

public class PersonnelStateDaoImp extends IbatisCommonDao<TgPersonnelState, Long> implements PersonnelStateDao{

	@Override
	public List<TgPersonnelState> getPersonnelStateByType(
			TgPersonnelState tgPersonnelState, Page page) {
		tgPersonnelState.setPagesize(page.getPagesize());
		tgPersonnelState.setFirstrownum(page.getFirstrownum());
		return this.queryForEntityList(TgPersonnelState.class, "getPersonnelStateByType", tgPersonnelState);
	}

	@Override
	public Integer getCountPersonnelStateByType(TgPersonnelState tgPersonnelState) {
		return this.queryForInteger("getCountPersonnelStateByType", tgPersonnelState);
	}

	@Override
	public List<TgPersonnelState> getPersonnelStateByType1(TgPersonnelState tgPersonnelState) {
		return this.queryForEntityList(TgPersonnelState.class, "getPersonnelStateByType1", tgPersonnelState);
	}

	@Override
	public List<TgPersonnelState> getPersonnelStateByType2(TgPersonnelState tgPersonnelState) {
		return this.queryForEntityList(TgPersonnelState.class, "getPersonnelStateByType2", tgPersonnelState);
	}

}
